package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.ITapesRecordsDao;
import com.guoxue.domain.TapesRecordsVo;
import com.guoxue.domain.TapesShareVo;
import com.guoxue.service.ITapesRecordsService;
@Service("TapesRecrdsService")
public class TapesRecordsServiceImpl implements ITapesRecordsService {
	
	@Resource
	private ITapesRecordsDao dao;

	@Override
	public void saveTapesRecords(TapesRecordsVo tr) {
		dao.saveTapesRecords(tr);
	}

	@Override
	public List<TapesRecordsVo> findByTimeAndStatus(String date) {
		return dao.findByTimeAndStatus(date);
	}

	@Override
	public void delete(TapesRecordsVo t) {
		dao.delete(t);
	}

	@Override
	public Long getTapesRecordsTotal(int uid, String flag) {
		return dao.getTapesRecordsTotal(uid,flag);
	}
	
	public List<TapesRecordsVo> findByUidAndStatus(int uid, int sysflag) {
		return dao.findByUidAndStatus(uid,sysflag);
	}

	@Override
	public TapesRecordsVo getTapesById(int tapesId) {
		return dao.getTapesById(tapesId);
	}

	@Override
	public TapesRecordsVo getTapesByChapterAndUid(String chapter, Integer uid) {
		return dao.getTapesByChapterAndUid(chapter,uid);
	}

	@Override
	public int getTapesCounts(Integer uid) {
		return dao.getTapesCounts(uid);
	}

}
